
/**
 * 基础路由 路由出口  最基本的路由
 * 		path：路由地址
 * 		name: 路由名称
 * 		component： 路由路径
 * 		meta： 标题（title）、缓存（keepAlive）{true：缓存。false：不缓存} 
 * @type { *[] }
 */
const constantRouterMap = [{
	path: '/',
	name: '',
  redirect: '/login'
},{
  path: '/login',
  name: 'login',
  meta: { requireAuth: false },
  component: () => import('@/views/login/index.vue'),
},{
  path: '/changePassword',
  name: 'changePassword',
  meta: { requireAuth: false },
  component: () => import('@/views/login/index.vue'),
},{
  path: '/404',
  name: '404',
  component: () => import('@/views/error/404.vue'),
}]


// 菜单动态路由集合
const routerTree = {
  path: '/home',
  name: 'home',
  redirect: '/myHome',
  meta: { requireAuth: true },
  component: () => import('@/views/home/index.vue'),
  children: [{
    path: '/myHome',
    name: 'myHome',
    meta: { requireAuth: true , breadRumbs:'首页'},
    component: () => import('@/views/home/myHome.vue'),
  },{
    path: '/personalCenter',
    name: 'personalCenter',
    meta: { requireAuth: true , breadRumbs:'首页,个人中心'},
    component: () => import('@/components/personalCenter.vue'),
  }]
}

export { constantRouterMap , routerTree}
